import logging
import time
import unittest
from Unit_01.Page import Page
from selenium import webdriver
from Unit_01.Tools import Tools
class Test_Case(unittest.TestCase):
    def setUp(self):
        # 测试固件
        Tools().log()
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self):
        # time.sleep(10)
        self.driver.quit()
        # 测试用例
    def test_baidu_01(self):
        logging.info("start")
        po= Page(self.driver)
        po.baidu_luoji()
        logging.info("end")
if __name__ == '__main__':
    unittest.main()